import $ from "@/utils/requset"
// 首页数据
const getHomeApi = () => $.getAxios('homeApi.json')
const getListItem1= (a) => $.getAxios("/homeApi/categoriesdetail/"+a)
const getListItem= () => $.getAxios("/homeApi/categories.json")
const getList= () => $.getAxios("/recipe/allScene.json")
const getListItem2= (b) => $.getAxios("/recipe/menulist/"+b)

// 登录
const postLogin = ({ tel = null, password = null, yzm = null, sms = null } = {}) => $.postAxios('login', { tel, password, yzm, sms })
export default {
    // 首页数据
    getHomeApi,
    //登录
    postLogin,
    getListItem,
    getListItem1,
    getList,
    getListItem2,
}